Math Problem Statement

Solve the differential equation xy' + y = x^2 e^{-x^2}.

Solution

The given differential equation is:

xy+y=x2ex2xy' + y = x^2 e^{-x^2}

Step 1: Rewrite the equation

We can rewrite this equation in a standard linear form. Divide through by xx (assuming x0x \neq 0):

y+yx=xex2y' + \frac{y}{x} = x e^{-x^2}

This is now a first-order linear differential equation of the form:

y+P(x)y=Q(x)y' + P(x)y = Q(x)

where P(x)=1xP(x) = \frac{1}{x} and Q(x)=xex2Q(x) = x e^{-x^2}.

Step 2: Find the integrating factor

The integrating factor μ(x)\mu(x) is given by:

μ(x)=eP(x)dx=e1xdx=elnx=x\mu(x) = e^{\int P(x)\, dx} = e^{\int \frac{1}{x} \, dx} = e^{\ln |x|} = |x|

Since we typically assume x>0x > 0, we take μ(x)=x\mu(x) = x.

Step 3: Multiply through by the integrating factor

Multiply both sides of the equation by xx to obtain:

xy+y=x2ex2x y' + y = x^2 e^{-x^2}

Notice that the left-hand side is now the derivative of xyxy:

ddx(xy)=x2ex2\frac{d}{dx}(xy) = x^2 e^{-x^2}

Step 4: Integrate both sides

Now integrate both sides with respect to xx:

xy=x2ex2dxxy = \int x^2 e^{-x^2} \, dx

We can use substitution to evaluate the integral. Let u=x2u = -x^2, so du=2xdxdu = -2x \, dx. This gives:

x2ex2dx=12(2xex2)dx=12ex2\int x^2 e^{-x^2} \, dx = -\frac{1}{2} \int (-2x e^{-x^2}) \, dx = -\frac{1}{2} e^{-x^2}

Step 5: Solve for yy

Now substitute back into the equation:

xy=12ex2+Cxy = -\frac{1}{2} e^{-x^2} + C

Finally, solve for yy:

y=12xex2+Cxy = -\frac{1}{2x} e^{-x^2} + \frac{C}{x}

Final Solution:

The general solution to the differential equation is:

y(x)=12xex2+Cxy(x) = -\frac{1}{2x} e^{-x^2} + \frac{C}{x}

Let me know if you would like further clarifications or details!


Related Questions:

  1. How do you identify a first-order linear differential equation?
  2. What is the role of an integrating factor in solving differential equations?
  3. How do you determine the integrating factor for a given linear differential equation?
  4. Can substitution methods always simplify integrals like x2ex2dx\int x^2 e^{-x^2} \, dx?
  5. What are the conditions under which we can assume x>0x > 0 when solving differential equations?

Tip: Always verify whether your differential equation is separable, exact, or linear to decide the best method for solving it.

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

First-Order Linear Differential Equations
Integration by Substitution
Integrating Factor

Formulas

y' + P(x)y = Q(x)
Integrating factor μ(x) = e^{∫P(x) dx}
Integration: ∫x^2 e^{-x^2} dx

Theorems

Method of Integrating Factors
Substitution in Integration

Suitable Grade Level

University Level (Calculus II or Differential Equations)